<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<% String contexts = request.getContextPath();
    pageContext.setAttribute("ctx", contexts);
%>
<head>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/login/comment/commentCss.css">
    <link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript" src="${ctx}/js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib uri="/struts-tags" prefix="s" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <title>评论管理</title>
</head>
<body>

<div id="categoryVO">
    <h2 class="page-header">评论</h2>

    <div>
        <table id="loadTable">
            <tbody>
            <tr>
                <td class="td">评论名:</td>
                <td>${comment.reviewers }</td>
            </tr>
            <tr>
                <td>评论内容:</td>
                <td>${comment.commentContent }</td>
            </tr>
            <tr>
                <td>点赞数:</td>
                <td>${comment.top }</td>
            </tr>
            <tr>
                <td>评论时间:</td>
                <td>
                    <fmt:formatDate value="${comment.commentTime }"
                                    pattern="yyyy-MM-dd HH:mm:ss"/></td>
            </tr>
            <tr>
                <td>
                    <button type="button" class="btn btn-info"
                            onclick="location.href='${ctx }/deleteComment.action?categoryId=${commentVO.commentId}'">
                        删除
                    </button>
                    <button type="button" class="btn btn-info"
                            onclick="location.href='${ctx }/listCommentByComment.action'">
                        返回评论列表
                    </button>
                </td>


            </tr>
            </tbody>
        </table>
    </div>
</div>

</body>
</html>
